package com.link.base.base.staticvalue.service;

import com.link.base.base.staticvalue.model.Staticvalue;
import com.link.core.basic.service.BasicServiceException;

import java.util.List;
import java.util.Map;

/**
 * @author unknown
 * @date unknown
 */
public interface StaticvalueService {


    /**
     * 获取用户信息列表
     *
     * @return 用户信息
     * @throws Exception
     */
    public List<Staticvalue> queryAll(Staticvalue staticvalue) throws Exception;

    /**
     * 根据值列列表类型和独立源代码找指列表
     *
     * @param val   用户名
     * @param stype 类型
     * @return 值列表信息
     * @throws BasicServiceException
     */
    public Staticvalue getLovByNameAndType(String val, String stype) throws BasicServiceException;

    /**
     * 根据值列表类型、显示值获取独立源代码
     *
     * @param type
     * @param name
     * @return String
     * @throws Exception
     */
    public String getLovValue(String type, String name) throws Exception;

    /**
     * 根据值列表类型、独立源代码获取显示值
     *
     * @param type
     * @param Value
     * @return String
     * @throws Exception
     */
    public String getLovName(String type, String Value) throws Exception;

    /**
     * 根据类型查询
     *
     * @param record
     * @return List Staticvalue
     * @throws Exception
     */
    public List<Staticvalue> queryByLovType(Staticvalue record) throws Exception;


    /**
     * 根据类型查询
     *
     * @param types
     * @return List Staticvalue
     * @throws Exception
     */
    public List<Staticvalue> queryByLovTypes(Staticvalue types) throws Exception;

    /**
     * 类型查询
     * @param staticvalue
     * @return List Staticvalue
     * @throws Exception
     */
    public List<Staticvalue> queryTypes(Staticvalue staticvalue) throws Exception;

    /**
     * 根据类型分组
     * @param staticvalue
     * @return map
     * @throws Exception
     */
    public Map<String,List<Staticvalue>> queryLovGroupByTypes(Staticvalue staticvalue) throws Exception;
}
